import {defineConfig} from 'vite'
import react from '@vitejs/plugin-react'

// https://vitejs.dev/config/
export default defineConfig({
    plugins: [react()],
    server: {
        host: '192.168.1.200',
        port: 3000
    },
    build: {
        minify: true,
        rollupOptions: {
            output: {
                manualChunks: (id) => {
                    // 模组
                    if (id.includes('node_modules')) return "modules";

                }
            }
        }
    },
})
